package com.atguigu.java4;

public class TriAngle {
		
		private double base;
		private double height;
		
		public TriAngle(){
			
		}
		
		public TriAngle(double b,double h){
				base = b;
				height = h;
		}
		
		public void setBase(double i){
				if(i <  0){
						System.out.println("请输入合法数值");
				}else{
					base = i;
				}
		}
		
		public void setHeight(double i){
			if(i <  0){
					System.out.println("请输入合法数值");
			}else{
				height = i;
			}
		}
		
		public double getBase(){
				return base;
		}
		
		public double getHeight(){
			return height;
		}
}

